<template>
  <div>
    <div class="container">
      <div class="nav">
        <div>
          <a href="javascript:;" @click="$router.back()"></a>
        </div>
        <div>
          <span>新闻正闻</span>
        </div>
        <div @click="subnav = !subnav">
          <i>&nbsp;&nbsp;&nbsp;&nbsp;</i>
          <div class="subnav" v-show="subnav">
            <router-link to="/" tag="a">首页</router-link>
            <router-link to="/news" tag="a">资讯</router-link>
            <router-link to="/video" tag="a">视频</router-link>
            <router-link to="/seek" tag="a">找车</router-link>
            <router-link to="/plaint" tag="a">汽车投诉</router-link>
          </div>
        </div>
      </div>

      <div class="showVideo">
        <div class="video_play">
          <video src="http://14.29.100.226/om.tc.qq.com/AL0-hHVvr5gZmSWpxh380usFN8axrgZBXQzBBLUB0VXs/uwMROfz2r57BIaQXGdGnC2dePkfUEfRW0HDxu-qEc5Y-nGDG/svp_50001/szg_3659_50001_0bc3rmad4aaavmafxpsglfrvdc6dh2fqapsa.f632.mp4?vkey=CE8AA63675EA43C9EAD00312FDC133058D5CA9B9CF961BC3A9C6B88BFD325E71B2AB1324CD5DB1C26DC73F74BEEB8AD00FCC9F1E8BC366310F43C36ED00FE7B491FCDBEDB8C36A1C249963880D52C4358D0EC7C6EB95ABD9A8EFF0737048F94ABC8943ABE28EABFC5F3CFCD85B40A2D4EEB274943BCACE4D" controls>浏览器不支持</video>
        </div>
        <div class="txt">
          <h2>瞄准30万+豪华MPV市场 试驾体验传祺M8宗师版</h2>
          <p>
            广汽传祺一直在探索，创新，力求打造一款中国最好MPV产品。传祺M8宗师，定位大师之上，将与M8大师、领秀系列同堂销售，瞄准30万+豪华MPV市场，是自主品牌打破合资垄断的提气之作，是民族自豪感不断
          </p>
        </div>
      </div>

      <div class="tit">
        <h3>相关视频</h3>
      </div>
      <div class="recommend">
        <div class="vidWrap">
          <div class="img">
            <img
              src="http://img.315che.com/img4/upload/2022-10-12/f628a50c-255e-48d8-9bf3-c9789b91da37.jpg"
              alt=""
            />
            <i class="icon"></i>
          </div>
          <p class="describe">威廉姆斯前瞻工程团队加持 道路试驾智己L7</p>
          <p class="date">2022-10-13 09:02:36</p>
        </div>
        <div class="vidWrap">
          <div class="img">
            <img
              src="http://img.315che.com/img4/upload/2022-10-12/f628a50c-255e-48d8-9bf3-c9789b91da37.jpg"
              alt=""
            />
            <i class="icon"></i>
          </div>
          <p class="describe">威廉姆斯前瞻工程团队加持 道路试驾智己L7</p>
          <p class="date">2022-10-13 09:02:36</p>
        </div>
      </div>
      
      <div class="column">
        <h2>评论</h2>
      </div>
      <div class="loaded">暂无评论，来做第一个吧~</div>
      <div class="footer">
        <p>您的投诉建议</p>
        <p>Copyright©2019 汽车消费网 315che.com</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      subnav: false,
    };
  },
  created() {
        this.$emit("car-show", false);
    },
};
</script>

<style lang="scss" scoped>
.nav {
  height: 44px;
  background-color: #2070e0;
  display: flex;
  align-items: center;

  & > div {
    &:nth-child(1) {
      text-align: left;
      flex: 1;
    }

    &:nth-child(2) {
      text-align: center;
      flex: 1;
    }

    &:nth-child(3) {
      text-align: right;
      flex: 1;
      padding-right: 10px;
      position: relative;
      i {
        display: block;
        float: right;
      }
      .subnav {
        width: 100px;
        height: 170px;
        padding: 6px;
        border-radius: 4px;
        position: absolute;
        top: 35px;
        left: 12px;
        background: rgba(0, 0, 0, 0.8);
        z-index: 9;

        a {
          width: 100px;
          height: 18px;
          padding: 8px 0;
          text-align: center;
          background-image: none;
          color: #fff;
        }

        &::before {
          content: "";
          display: block;
          position: absolute;
          top: -17px;
          left: 80px;
          border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent;
          border-width: 9px;
          border-style: dashed dashed solid dashed;
        }
      }
    }
  }

  div {
    a {
      display: block;
      width: 40px;
      height: 40px;
      background-image: url("../assets/img/icons1.png");
      background-position: -82px -32px;
      background-size: 400px auto;
    }

    span {
      color: #fff;
      font-size: 16px;
    }

    i {
      width: 15px;
      height: 18px;
      background-image: url("../assets/img/m-icons.png");
      background-position: -211px 0px;
      background-size: 300px auto;
      margin-right: 15px;
    }
  }
}
.showVideo {
  height: auto;
  border-bottom: 10px solid #f5f5f5;
  .video_play {
    video {
      width: 100%;
      height: 100%;
    }
  }
  .txt {
    padding: 15px;
    h2 {
      height: 64px;
      margin-bottom: 20px;
      font-size: 22px;
      color: #333;
      font-weight: 700;
    }
    p {
      font-size: 15px;
      color: #333;
      text-indent: 30px;
      line-height: 1.5;
    }
  }
}

.tit {
  height: 50px;
  border-bottom: 1px solid #f5f5f5;
  margin: 0 20px;
  h3 {
    font-size: 16px;
    line-height: 50px;
    color: #2070e0;
    font-weight: 700;
    border-bottom: 2px solid #2070e0;
    display: inline-block;
  }
}
.recommend {
  display: flex;
  padding: 15px 15px 30px 15px;
  justify-content: space-between;
  .vidWrap {
    width: 160px;
    .img {
      height: 100px;
      width: 160px;
      margin: auto;
      position: relative;
      .icon {
        position: absolute;
        top: 65px;
        left: 10px;
        width: 20px;
        height: 20px;
        background-color: rgba(0, 0, 0, 0.3);
        border: 1px solid #fff;
        border-radius: 50%;
        &::after {
          content: "";
          display: block;
          width: 7px;
          height: 8px;
          position: absolute;
          top: 6px;
          left: 6px;
          background-image: url("../assets/img/m-icons.png");
          background-position: 0px -115px;
          background-size: 250px;
        }
      }
    }
    .describe {
      font-size: 14px;
      color: #333;
      padding-bottom: 10px;
    }
    .date {
      color: #999;
      font-size: 12px;
    }
  }
}

.column {
    h2 {
        color: #333;
        font-size: 22px;
        border-bottom: 20px;
        font-weight: 700;
        padding-left: 20px;
    }
}

.new {
    padding: 15px 0;

    &>div {
        display: flex;
        padding: 8px 20px;
        justify-content: space-between;
        margin-bottom: 15px;

        .img {
            flex: 1;
            margin-left: 10px;

            img {}
        }

        .txt {
            display: flex;
            flex: 2;
            flex-direction: column;
            justify-content: space-around;

            h4 {
                height: 42px;
                line-height: 20px;
                font-size: 18px;
                color: #333;
                margin-bottom: 15px;
            }

            span {
                font-size: 12px;
                color: #999;
            }
        }
    }
}

.loaded {
    font-size: 15px;
    color: #666;
    text-align: center;
    margin: 20px 0;
}

.footer {
    height: 44px;
    padding: 25px 20px;
    padding-bottom: 75px;

    p {
        color: #333;
        font-size: 14px;
        text-align: center;

        &:first-of-type {
            padding-bottom: 10px;

            &::before {
                display: inline-block;
                width: 18px;
                height: 14px;
                content: "";
                background-image: url("../assets/img/m-icons.png");
                background-position: -601px 0px;
                background-size: 230px auto;
                margin-right: 3px;
            }
        }
    }
}
</style>